package org.langqiao.network.java复习题老师给的;

public class strReverse {
	public static void reverse(String s)
	{
		StringBuilder a=new StringBuilder(s);//利用String对象，构建StringBuilder
		a.reverse();//利用StringBuilder的方法reverse()实现字符窜的翻转
		System.out.print(a.toString());
		
	}
	public static void main(String[] args)
	{
		String s="Happy birthday,dear baby!";
		reverse(s);
	}

}
